# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  
end
def main_menu()
    base = [
      ['Dashboard', {:controller => 'accounts', :action => 'index'}],
      ['Accounts', {:controller => 'accounts', :action => 'index'}],
      ['Expenses', {:controller => 'expenses', :action => 'index'}],
      ['Logout', {:controller => 'profile', :action => 'logout'}],
    ]
    
    use = base
        
    use.map{|x| "<li>#{link_to(h(x.first), x.last)}</li>"}.join('')
  end
